<!DOCTYPE html>
<#assign secSelect = JspTaglibs["http://www.casic304.cn/secSelect"] />
<#assign dicSelect = JspTaglibs["http://www.casic304.cn/dicSelect"]/>
<#assign fillDept=JspTaglibs["http://www.casic304.cn/fillDept"] />
<html>
<head>
    <meta charset="utf-8">
    <title>压力元件信息</title>
    <meta name="renderer" content="webkit">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <meta name="viewport"
          content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=0">
    <link rel="stylesheet" href="${ctx}/layui/css/layui.css" media="all"/>
    <link rel="stylesheet" href="${ctx}/qbdmsStatic/iconfont/iconfont.css"/>
    <link rel="stylesheet" href="${ctx}/qbdmsStatic/style/qbdms.css">
    <script type="text/javascript">
        var __ctx = "${ctx}";

    </script>
    <style>
        .qbdms-TBinformation {
            margin-left: 0px;
            font-size: 15px
        }
    </style>
    <#if isClose == 'true'>
        <style>
            .listBody .qbdms-bodyDiv{padding: 0 }
            body.qbdms-particulars .qbdms-bodyDiv div.layui-table-view-body{padding: 16px}
            .treeFormPreview{position: unset;}
        </style>
    </#if>
</head>
<body class="listBody  qbdms-particulars">
<div class="qbdms-bodyDiv">
    <div class="layui-table-view-body qbdms-add-view-body" >
        <#if isClose != 'true'><div class="qbdms-formTitle" style="border-bottom: 1px solid #E5F0FF">压力元件信息 <i class="qbdms-returnOn closeWindow">返回</i></div></#if>
        <form class="layui-form treeFormPreview"  requrl="${ctx}/qbdms/wQbdPressureElementInfo/get"  lay-filter="wQbdPressureElementInfoDataForm">
            <div class="" style="width: 100%;overflow-x: auto">

                <table class="tableExcel qbdms-zeroTable" width="100%" border="0" cellspacing="0" cellpadding="0">
                    <tbody>
                    <tr id="tbxx">
                    </tr>

                    <tr>
                        <td class="qbdms-zeroTable-lable">批次号<span style="color: red;">*</span></td>
                        <td name='batchNumber'></td>
                    <tr>
                        <td class="qbdms-zeroTable-lable">密级<span style="color: red;">*</span></td>
                        <td name=''>
                            <@secSelect.sec_select data_src=1 required=true name="secret"/>
                        </td>
                    <tr>
                        <td class="qbdms-zeroTable-lable">元件类别<span style="color: red;">*</span></td>
                        <td name=''>
                            <@dicSelect.dic name="componentCategory" verify="required" css="layui-input filter-value" nodeKey="yjlb" verify="required" reqtext="元件类别是必填项"/>
                        </td>
                    <tr>
                        <td class="qbdms-zeroTable-lable">企业类别<span style="color: red;">*</span></td>
                        <td name=''>
                            <@dicSelect.dic name="businessCategory" verify="required" css="layui-input filter-value" nodeKey="qylb" verify="required" reqtext="企业类别是必填项"/>
                        </td>
                    <tr>
                        <td class="qbdms-zeroTable-lable">检测总件数性能检测</td>
                        <td name='testSumPerformanceTesting'></td>
                    <tr>
                        <td class="qbdms-zeroTable-lable">检测总件数尺寸检测</td>
                        <td name='testSumSizeDetection'></td>
                    <tr>
                        <td class="qbdms-zeroTable-lable">不合格件数性能检测</td>
                        <td name='failedPerformanceTesting'></td>
                    <tr>
                        <td class="qbdms-zeroTable-lable">不合格件数尺寸检测</td>
                        <td name='failedSizeDetection'></td>
                    </tr>


                    </tbody>
                </table>

            </div>
            <input type="hidden" name="id" placeholder="请输入" autocomplete="off" class="layui-input "
                   maxlength="50" fieldname="id">
            <#if isClose != 'true'>
                <div class="layui-form-item btnformItem">
                    <p>
                        <button type="reset" id="closeWindow"
                                class="closeWindow layui-btn layui-btn-sm btn-save qbdms-oneBtnLine">返回
                        </button>
                    </p>
                </div>
            </#if>
        </form>
    </div>
</div>

<script src="${ctx}/qbdmsStatic/public/configFile.js"></script>
<script src="${ctx}/layui/layui.js"></script>
<script>
    layui.config({
        base: serverPath.qbdmsPath + staticPath.qbdmsPath //静态资源所在路径
    }).extend({
        index: 'lib/index' //主入口模块
    }).use(['index', 'common', 'laydate', 'jquery','propsHandle'], function () {
        var laydate = layui.laydate;
        var $ = layui.jquery;
        var dateTimeFiledLen = $(".dateTimeFiled");
        var propsHandle = layui.propsHandle;
        var  defProps = {
                //viewMould: 'form/formDef/view/formDesign/moulds/', // 组件模块 存放文件 *****
                viewMould: 'moulds/', // 组件模块 存放文件 *****
                selectorBtn: '.selectorBtn'
            },
            temQuery = new propsHandle();  // 实例化模板功能部分

        // 初始化模板功能
        temQuery.initTem({
            selectorBtn: defProps.selectorBtn,
            selectorTemPath: setter.views + defProps.viewMould
        });
        for (var i = 0; i < dateTimeFiledLen.length; i++) {
            laydate.render({
                elem: dateTimeFiledLen[i] //指定元素
                , type: 'date'
                , trigger: 'click'
            });
        }
        //关闭当前页面
        $("#closeWindow,.closeWindow").click(function () {
            if ("${isClose}" == "true") {
                parent.layer.close(parent.layer.getFrameIndex(window.name));
            }
            window.location.href = '${ctx}/qbdms/wQbdPressureElementInfo/view/list';
        });

        var runId = "${runId}";
        if (runId == null || runId == '') {
            $("#hideAndShow").show();
        }
        var common = layui.common;
        var index = parent.parent.layer.getFrameIndex(window.name);
        common.updateForm({
            name: 'wQbdPressureElementInfoDataForm',
            idValue: "${id}",
            primary: "id",
            getCallback: function (data) {
                // $("#tbxx").html("<span class='qbdms-TBinformation'>填报信息:</span><span class='qbdms-TBinformationText'>【" + data.data.filldept + " | " + data.data.fillman + " | " + data.data.filldate + "】</span>");
                $("#tbxx").html("<td class='qbdms-zeroTable-lable'>填报信息:</td><td colspan='5' class=''>【"+data.data.filldept+" | "
                    +data.data.fillman+"  | "+data.data.filldate+"】</td>");
            }
        });
        $("body *").not("#closeWindow").attr("disabled", "disabled");

    });
</script>
</body>
</html>